module.exports = class extends think.Controller {
    async __before() {
        const token = this.header('token');
        const userInfo = await this.cache(token);
        if (think.isEmpty(userInfo)) return false;
        this.userInfo = userInfo; //丢到this身上后面再取
    }

};